﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>THẾ GIỚI LINH KIỆN MÁY TÍNH-XUÂN TUẤN</title>
<style>
a {text-decoration: none}
</style>
</head><body bgcolor="#CCCC99">

<body><div align="center">
 <form method="post" action="">

<p align="left" class="style1"><font size="+2"><b>
  <center>
     QUẢN LÝ THÔNG TIN LOẠI SẢN PHẨM
  </center></b></font></p>
<p align="left">
<table width="557"  border="1"  bordercolor="#339933"align="center">
  <tr>
    <th width="86"  align="center" bgcolor="#009900"><b><font color="#FFFF00">Mã Loại</font></b></th>
    <th width="171" align="center" bgcolor="#009900"><b><font color="#FFFF00">Tên Loại</font></b> </th>
   	<th width="75" align="center" bgcolor="#009900" ><b><font color="#FFFF00">Sửa </font></b>	</th>
    <th width="72" align="center" bgcolor="#009900"><b><font color="#FFFF00"> Xóa </font></b>	</th>
     </tr>
<?php

	 $con=mysql_connect("localhost","root","");
	  mysql_select_db("linhkienmt",$con);
	  $sql="select * from loaisp order by maloai";
	  $kq=mysql_query($sql,$con);
	while ($row=mysql_fetch_array($kq))
	{
  
   	 echo "<tr>";
  	 echo"<td >".$row['maloai']."</td>";
     echo "<td >".$row['tenloai']."</td>";
     ?>
	 <td ><a href="file:///E|/xuantuan/shoponline/quantri/sualoaisanpham.php?maloai=<?php echo $row['maloai'];?>">Sửa</a></font></td>
	 <td ><a href="file:///E|/xuantuan/shoponline/quantri/xoaloaisanpham.php?maloai=<?php echo $row['maloai'];?>">Xóa</a></font></td> 
	 <?php
     echo "</tr>";
	 }
	mysql_close($con); 
	 ?>
  </table>

  <input name="button" type="button" onclick="window.location='capnhatloaisanpham.php'" value="  Thêm mới  " />
 </form>
</div></body>
</html>
